/*
 * ListOperatorExpression.java
 *
 * Created on March 1, 2007, 10:17 PM
 *
 * (C) R. Alexander Milowski alex@milowski.com
 */

package com.smallx.xpath.parser;

import java.util.ArrayList;
import java.util.List;
import org.infoset.xml.Name;

/**
 *
 * @author R. Alexander Milowski
 */
public class FunctionExpression extends VoidExpression {
   
   List<Expression> arguments;
   Name name;
   
   /** Creates a new instance of ListOperatorExpression */
   public FunctionExpression(Name name) {
      super(Expression.Operator.Function);
      this.name = name;
      this.arguments = new ArrayList<Expression>();
   }
   
   public Name getName() {
      return name;
   }
   
   public List<Expression> getArguments() {
      return arguments;
   }
   
   public String toString() {
      return "("+operator+" "+name+" "+ListOfExpressions.toString(arguments)+" )";
   }
  
}
